/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package econutri.persistencia.entidades;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import lomtools.persistence.Bean;

/**
 *
 * @author Leonardo Oliveira Moreira
 */
@Entity
@Table(name="usuario")
public class Usuario extends Bean {

    @Id
    @SequenceGenerator(name="usuario_sequence", sequenceName="usuario_codigo_seq")
    @GeneratedValue(generator="usuario_sequence")
    @Column(name = "codigo", nullable=false)
    private Long codigo ;
    @Column(name = "nome", nullable=false)
    private String nome;
    @Column(name = "sexo", nullable=false)
    private String sexo;
    @Column(name = "login", nullable=false)
    private String login;
    @Column(name = "senha", nullable=false)
    private String senha;

    public Long getCodigo() {
        return codigo;
    }

    public void setCodigo(Long codigo) {
        this.codigo = codigo;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getSenha() {
        return senha;
    }

    public void setSenha(String senha) {
        this.senha = senha;
    }

    public String getSexo() {
        return sexo;
    }

    public void setSexo(String sexo) {
        this.sexo = sexo;
    }
    
}
